package com.ican.oc.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="product_description")
public class OcProductDescription implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @EmbeddedId
    private OcProductDescPK pk;
    @Column(name = "name")
    private String name;
    @Column(name = "description")
    private String description;
    @Column(name = "meta_description")
    private String metaDescription;
    @Column(name = "meta_keyword")
    private String metaKeyword;
    
    public OcProductDescription(){
        
    }
    
    public OcProductDescription(Integer productId, Integer languageId, String name, String description){
        this.pk = new OcProductDescPK();
        this.pk.setProductId(productId);
        this.pk.setLanguageId(languageId);
        this.name = name;
        if(description == null){
            this.description = "";
        }else{
            this.description = description;
        }
        this.metaDescription = "";
        this.metaKeyword = "";
    }
    
    public OcProductDescPK getPk() {
        return pk;
    }
    public void setPk(OcProductDescPK pk) {
        this.pk = pk;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public String getMetaDescription() {
        return metaDescription;
    }
    public void setMetaDescription(String metaDescription) {
        this.metaDescription = metaDescription;
    }
    public String getMetaKeyword() {
        return metaKeyword;
    }
    public void setMetaKeyword(String metaKeyword) {
        this.metaKeyword = metaKeyword;
    }
}
